package com.tj.api.rest.account.requset;

import com.fqgj.common.api.ParamsObject;
import com.tj.bo.common.conf.util.ParamsValidateUtil;

/**
 * @program: binary-option
 * @description
 * @author: frank
 * @create: 2020-08-27 11:09
 **/
public class AccountGrantsRequest extends ParamsObject {

    /**
     * 当前页数
     */
    private Integer pageNo;

    public Integer getPageNo() {
        return pageNo;
    }

    public AccountGrantsRequest setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
        return this;
    }

    @Override
    public void validate() {
        ParamsValidateUtil.checkParams(pageNo == null, "pageNo can not be empty");
    }
}
